Skip to content

feat: solve_ticket for a teammate's own agent, with get_session_brief (replaces #9) - #13

Closed
boehlerlukas wants to merge 11 commits into
mainfrom
operator/solve-ticket
Closed

boehlerlukas wants to merge 11 commits into
mainfrom
operator/solve-ticket

Conversation

@boehlerlukas

@boehlerlukas boehlerlukas commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Replaces #9 (operator/session-brief, merged in) and adds the whole-ticket hand-off for a teammate's own agent. Merged with main as of today.

  • solve_ticket prompt: a teammate's own agent (Claude Code, Codex, Cursor, …) takes the whole ticket with Gleap's task prompt. It reads get_session_brief first: the brief carries the team rules and the reply rule (hardTickets.customerReply: send or ask first).
  • get_session_brief: the session's brief, including antigravity. One combined text for rules 1–2: the session owns the ticket, only the holder writes to the customer, new messages are read first.
  • Server side: handoffKind: 'solve' on POST /gleapcode/sessions (GleapSDK/Server#3349).

Next: the engineering plan (https://claude.ai/artifact/QemxcAY7aoTiSoPktZRHWp, step 3) replaces the three hand-written prompts (fix_ticket, answer_ticket, solve_ticket) with list_skills / get_skill, served from one SKILL.md source on the Server, so an outside agent works with the skills the workspace edited. Step 7 applies the workspace rules (allow, ask first, never) to tool calls that come through the MCP.

Checked: npm run build, npm run typecheck, npm test (all pass). Not run against a live Gleap with a model.

🤖 Generated with Claude Code

boehlerlukas and others added 11 commits November 21, 2026 08:18
Moved from the private archive repo (PR #116 there).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ent-workflow route

The Server serves a session's brief on GET /gleapcode/sessions/{id}/agent-workflow
without a kind, as Markdown in `markdown` (`brief` is its structured form).
There is no agent-brief route. The required behaviour changed, so this test changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Server has no agent-brief route: it serves a session's brief on
GET /gleapcode/sessions/{id}/agent-workflow without a kind, as Markdown in
`markdown`. get_session_brief now calls that route and returns that text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ain's tests do

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o the customer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The instruction text and five tool texts no longer state their own rule for customer messages and ticket ownership: they point at the session's brief and fall back to asking first.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Instruction rules 1-2 keep one text: a kickoff that names a session calls get_session_brief first, the brief decides ownership and customer messages (a code-fix session never sends), and without a rule in the brief the agent asks its operator first. README's send_message and draft_reply_to_composer rows follow the brief's reply rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boehlerlukas

Copy link
Copy Markdown
Contributor Author

Closing in favour of #14 (branch engine/clean), which contains every commit of this branch. The branch itself is left as it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants